scale_y: 1,
opacity: 255,
duration: FOLDER_DIALOG_ANIMATION_TIME,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ mode: Clutter.AnimationMode.EASE_OUT_EXPO,
});
this._needsZoomAndFade = false;
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
});
+ this.child.ease({
+ opacity: 0,
+ duration: FOLDER_DIALOG_ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
+
this.child.ease({
translation_x: sourceX - dialogX,
translation_y: sourceY - dialogY,
scale_x: this._source.width / this.child.width,
scale_y: this._source.height / this.child.height,
- opacity: 0,
duration: FOLDER_DIALOG_ANIMATION_TIME,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ mode: Clutter.AnimationMode.EASE_OUT_EXPO,
onComplete: () => {
this.child.set({
translation_x: 0,
this.show();
if (animate & PopupAnimation.SLIDE) {
+ this.scale_x = 0.96;
+ this.scale_y = 0.96;
+
switch (this._arrowSide) {
case St.Side.TOP:
this.translation_y = -rise;
+ this.set_pivot_point(0.5, 0);
break;
case St.Side.BOTTOM:
this.translation_y = rise;
+ this.set_pivot_point(0.5, 1);
break;
case St.Side.LEFT:
this.translation_x = -rise;
+ this.set_pivot_point(0, 0.5);
break;
case St.Side.RIGHT:
this.translation_x = rise;
+ this.set_pivot_point(1, 0.5);
break;
}
}
opacity: 255,
translation_x: 0,
translation_y: 0,
+ scale_x: 1,
+ scale_y: 1,
duration: animationTime,
- mode: Clutter.AnimationMode.LINEAR,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
onComplete: () => {
this._muteInput = false;
if (onComplete)
let translationX = 0;
let translationY = 0;
+ let scaleX = 1;
+ let scaleY = 1;
let themeNode = this.get_theme_node();
let rise = themeNode.get_length('-arrow-rise');
let fade = animate & PopupAnimation.FADE;
let animationTime = animate & PopupAnimation.FULL ? POPUP_ANIMATION_TIME : 0;
if (animate & PopupAnimation.SLIDE) {
+ scaleX = 0.96;
+ scaleY = 0.96;
+
switch (this._arrowSide) {
case St.Side.TOP:
- translationY = rise;
+ translationY = -rise;
+ this.set_pivot_point(0.5, 0);
break;
case St.Side.BOTTOM:
- translationY = -rise;
+ translationY = rise;
+ this.set_pivot_point(0.5, 1);
break;
case St.Side.LEFT:
- translationX = rise;
+ translationX = -rise;
+ this.set_pivot_point(0, 0.5);
break;
case St.Side.RIGHT:
- translationX = -rise;
+ translationX = rise;
+ this.set_pivot_point(1, 0.5);
break;
}
}
opacity: fade ? 0 : 255,
translation_x: translationX,
translation_y: translationY,
+ scale_x: scaleX,
+ scale_y: scaleY,
duration: animationTime,
- mode: Clutter.AnimationMode.LINEAR,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
onComplete: () => {
this.hide();
this.opacity = 0;
global.connectObject(
'shutdown', () => this._onWait(), this._dialog);
- this._dialog._dialog.scale_y = 0;
this._dialog._dialog.set_pivot_point(0.5, 0.5);
+ this._dialog._dialog.scale_x = 0.8;
+ this._dialog._dialog.scale_y = 0.8;
this._dialog._dialog.ease({
+ scale_x: 1,
scale_y: 1,
- mode: Clutter.AnimationMode.LINEAR,
+ mode: Clutter.AnimationMode.EASE_OUT_BACK,
duration: DIALOG_TRANSITION_TIME,
onComplete: this._onFocusChanged.bind(this),
});
dialog.makeInactive();
dialog._dialog.ease({
- scale_y: 0,
- mode: Clutter.AnimationMode.LINEAR,
+ opacity: 0,
+ scale_x: 0.8,
+ scale_y: 0.8,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
duration: DIALOG_TRANSITION_TIME,
onComplete: () => dialog.destroy(),
});
this._bannerBin.ease({
opacity: 255,
duration: ANIMATION_TIME,
- mode: Clutter.AnimationMode.LINEAR,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
});
+ this._bannerBin.set_pivot_point(0.5, 0.5);
+ this._bannerBin.scale_x = 0.9;
+ this._bannerBin.scale_y = 0.9;
this._bannerBin.ease({
y: 0,
+ scale_x: 1,
+ scale_y: 1,
duration: ANIMATION_TIME,
mode: Clutter.AnimationMode.EASE_OUT_BACK,
onComplete: () => {
this.ease({
opacity: 255,
duration: STARTUP_ANIMATION_TIME,
- mode: Clutter.AnimationMode.LINEAR,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
});
// Search bar falls from the ceiling
});
this._boxPointer.ease_property('@effects.dim.brightness', color, {
- mode: Clutter.AnimationMode.LINEAR,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
duration: POPUP_ANIMATION_TIME,
onStopped: () => (this._dimEffect.enabled = dim),
});
delay,
duration,
animationRequired,
- mode: Clutter.AnimationMode.LINEAR,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
onComplete: () => (ripple.visible = false),
});
}
});
this.actor.ease_property(`@effects.${this.name}.brightness`, color, {
- mode: Clutter.AnimationMode.LINEAR,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
duration: (dimmed ? DIM_TIME : UNDIM_TIME) * (animate ? 1 : 0),
onStopped: () => this._syncEnabled(dimmed),
});
thumbnail.ease_property('slide-position', 1, {
duration: SLIDE_ANIMATION_TIME,
- mode: Clutter.AnimationMode.LINEAR,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
onComplete: () => {
this._setThumbnailState(thumbnail, ThumbnailState.ANIMATED_OUT);
this._queueUpdateStates();